package com.tiendung.basicviewdemo;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;

public class MainActivity extends Activity {

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_main);

		Button btnSignup = (Button) findViewById(R.id.btnSignup);
		btnSignup.setOnClickListener(new OnClickListener() {

			@Override
			public void onClick(View v) {
				Intent intent = new Intent(
						"com.tiendung.basicviewdemo.SignupActivity");
				startActivity(intent);
			}
		});

		Button btnGame = (Button) findViewById(R.id.btnGame);
		btnGame.setOnClickListener(new OnClickListener() {

			@Override
			public void onClick(View v) {
				Intent intent = new Intent(
						"com.tiendung.basicviewdemo.DemSoActivity");
				startActivity(intent);
			}
		});

	}

}
